package model

// SignOrign 加密Key
var SignOrign = "monitor"

// NullRPCRequest RPC请求参数
type NullRPCRequest struct {
	Sign []byte
}

// AgentReportRequest Agent心跳数据
type AgentReportRequest struct {
	IP           string `json:"ip"`
	AgentVersion string `json:"agent_version"`
	Status       int    `json:"status"`
	UpdateTime   string `json:"update_time"`
}

// AgentAuthRequest 验证参数
type AgentAuthRequest struct {
	ID           string
	IP           string
	ClientKey    []byte
	AgentVersion string
}

// SimpleRPCResponse RPC响应参数
type SimpleRPCResponse struct {
	Code    int    `json:"code"`
	Message string `json:"message"`
}

// CommonSign 验证签名
type CommonSign struct {
	Diytime string
	Sign    string
}

// HTTPSeverPrivateKey 私钥
var HTTPSeverPrivateKey = []byte(`
-----BEGIN RSA PRIVATE KEY-----
MIIBOgIBAAJBAKa61dkQCrWpvPaP9VQ8/TdOAYNpdi/bSVXhRgQ+euvWNJ/KspW0
VUo1w6VtZH1FKQmqtyM5FPNTHVej/emyaYECAwEAAQJAWYplZllTJxStQs01N7Q5
WQYvkd+FdVYTIGgHLihP428cJ6uArjbPdbcAKgZIfZUjGQtPRk0K2sktT2l74Paz
QQIhANu/IeaWIp1+THp27oT6bSVDVhtKmQGvX3G/DucsieXNAiEAwjySCuqnd99q
ZG95ageWwGBs0BZyvPGzx1j9vvGgHoUCIB8o2hjFX0Ev4I5ZAPdwPzvScYpLKKkZ
ghIyAl37bc5dAiBL1wSa+JZdCsHq50+746yr/rpd4XX5alJs0sV46bVAVQIhAL2G
rx08a5ZObnKcBq6A6ziMlpOGl/VvTgmmy2IAq8iH
-----END RSA PRIVATE KEY-----
`)

// HTTPSeverPublicKey 公钥
var HTTPSeverPublicKey = []byte(`
-----BEGIN PUBLIC KEY-----
MFwwDQYJKoZIhvcNAQEBBQADSwAwSAJBAKa61dkQCrWpvPaP9VQ8/TdOAYNpdi/b
SVXhRgQ+euvWNJ/KspW0VUo1w6VtZH1FKQmqtyM5FPNTHVej/emyaYECAwEAAQ==
-----END PUBLIC KEY-----
`)

////线下
////HttpSever私钥
//var HttpSeverPrivateKey = []byte(`
//-----BEGIN RSA PRIVATE KEY-----
//MIIBOgIBAAJBAMaVsIPi2CTl3gdXinSt1pCV80WVBfY1zOamxfsNZdlDJsuP1BWN
//j2PzjvGNIQuQgwKbXEU8IUBh7IH7mm3AzxMCAwEAAQJBAL/qWjSbPhgqrnCaAYzR
//k9MXl4tfget4AxXFhwAg6pUTw2FrJJKQmrfTI1pBE4122oDbB2mDCj5yP31wHicJ
//DMECIQDP1EqA8xLi8E7cv3A1eHZcgw73TMwRv79C7KIc/qO0VQIhAPSc3eRD/XtM
//0S1GbyA5AXqByh8sEU1rPlVyn3MOyh3HAiBntch4ENSb6s9v2Rhllnd6MuyE/A3Z
//zZXkD7HWRjvrAQIgNtz0G51wPfZluBzjEbwXa82ucr1kiBO0oF+cCadYh8MCIFGL
//6BFiNURxT9MF1OAisp6/g9AFZASXG4m9yzON3jaI
//-----END RSA PRIVATE KEY-----
//`)

////HttpSever公钥
//var HttpSeverPublicKey = []byte(`
//-----BEGIN PUBLIC KEY-----
//MFwwDQYJKoZIhvcNAQEBBQADSwAwSAJBAMaVsIPi2CTl3gdXinSt1pCV80WVBfY1
//zOamxfsNZdlDJsuP1BWNj2PzjvGNIQuQgwKbXEU8IUBh7IH7mm3AzxMCAwEAAQ==
//-----END PUBLIC KEY-----
//`)
